Skip to content

Conversation

bjee19
Copy link
Contributor

@bjee19 bjee19 commented Sep 11, 2025

Proposed changes

Problem: Users would like a way to specify addresses for all incoming traffic to use through the GatewaySpecAddresses field.

Solution: Implement the GatewaySpecAddresses field by adding the validated addresses to the externalIP field on the NGINX service.

Testing: GatewayStaticAddresses conformance test passes. Manually verified service externalIP field is set correctly. Manually verified conditions on Gateway.

Closes #2944

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

Release notes

If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.

Add support for Gateway.Spec.Addresses field through the setting of externalIPs on the NGINX Service.

@bjee19 bjee19 requested a review from a team as a code owner September 11, 2025 21:26
@github-actions github-actions bot added enhancement New feature or request tests Pull requests that update tests labels Sep 11, 2025
Copy link

codecov bot commented Sep 11, 2025

Codecov Report

❌ Patch coverage is 59.18367% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.81%. Comparing base (24e0cb6) to head (f8e4c15).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/controller/state/conditions/conditions.go 0.00% 20 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3896   +/-   ##
=======================================
  Coverage   86.80%   86.81%           
=======================================
  Files         128      128           
  Lines       16547    16575   +28     
  Branches       62       62           
=======================================
+ Hits        14364    14389   +25     
- Misses       2003     2006    +3     
  Partials      180      180           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@salonichf5
Copy link
Contributor

We should do manual testing for only IPv6 environment for this.

@bjee19
Copy link
Contributor Author

bjee19 commented Sep 12, 2025

Should we have some mention of what the gateway.spec.addresses field actually does? Since its implementation specific I think we do.

I'll update the gateway compatibility doc, but i'm wondering if the functionality should be condensed into that document. Or if we should make a separate document for it, any thoughts?

@bjee19
Copy link
Contributor Author

bjee19 commented Sep 12, 2025

nginx/documentation#1109 is associated compatibility document update.

Copy link
Collaborator

@sjberman sjberman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a couple small changes

Copy link
Contributor

@salonichf5 salonichf5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@bjee19 bjee19 force-pushed the enh/support-gateway-addresses-field branch from e3f402c to 5468ce6 Compare September 17, 2025 17:23
@bjee19 bjee19 enabled auto-merge (squash) September 17, 2025 17:45
@bjee19 bjee19 merged commit 36788a1 into main Sep 17, 2025
43 of 44 checks passed
@bjee19 bjee19 deleted the enh/support-gateway-addresses-field branch September 17, 2025 18:14
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in NGINX Gateway Fabric Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request release-notes tests Pull requests that update tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Support GatewayAddresses Field

3 participants